<%@ page contentType="text/html;charset=UTF-8" %>
<%@ page import="org.apache.shiro.web.filter.authc.FormAuthenticationFilter"%>
<%@ include file="/webpage/include/taglib.jsp"%>
<!DOCTYPE html>
<html>

<head>
<meta name="description" content="WeCaht login page" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<script src="${ctxStatic}/plugin/jquery/jquery-2.1.1.min.js"
	type="text/javascript"></script>
<script src="${ctxStatic}/plugin/jquery/jquery-migrate-1.1.1.min.js"
	type="text/javascript"></script>
<script src="${ctxStatic}/plugin/jquery-validation/1.14.0/jquery.validate.js"
	type="text/javascript"></script>
<script
	src="${ctxStatic}/plugin/jquery-validation/1.14.0/localization/messages_zh.min.js"
	type="text/javascript"></script>

<style type="text/css">
.bound {
	background-color: white;
	background-color: rgba(255, 255, 255, 0.95);
	border-radius: 40px;
}
</style>
<title>微信登录</title>
</head>

	<script type="text/javascript">
		$(document).ready(function() {
			 $.ajax({
                cache: true,
                type: "POST",
                url:"${ctx}/login",
                data:{username:"${user.loginName}",password:"${user.password}",weChatLogin:true,rememberMe:true},
                async: false,
                error: function(request) {
                    alert("Connection error");
                },
                success: function(data) {
                    window.location.href="${path}"; 
                }
            });
            
		});
	</script>
<body class="login-layout light-login" id="weChatLoginForm">
微信登录
</body>
</html>
